<?php
	$base_path = 'http://localhost/project/';
?>
<html>
<head>
<title><?php echo $title ?> - Presentation Manager</title>
<style type="text/css">
body{
	background:#666;
	color:#FFF;
}
a
{
	color:#FF6;}
</style>
</head>	
<body>
	<h1>Presentation Manager</h1>
    <?php 
	if(!isset($_SESSION)){
		session_start();
	}
	if(isset($_SESSION['user_id'])){
		echo '<a href="' . $base_path . 'index.php/logout">click here to logout</a>--Goto->
		<a href="' . $base_path . 'index.php/pages">Home</a>->';
		if($_SESSION['type'] == 'attendee'){
			echo '<a href="' . $base_path . 'index.php/attendee_list/view_dashboard/'. $_SESSION['user_id'] .'">Dashboard</a>';
		} else if($_SESSION['type'] == 'presenter'){
			echo '<a href="' . $base_path . 'index.php/presenter_list/view_dashboard/'. $_SESSION['user_id'] .'">Dashboard</a>';
		}
	}
	?>